'use strict';

const { Controller } = require('egg');
const Response = require('../utils/Response')
/**
 * @Controller  附加功能模块
 */
class HomeController extends Controller {
  async index() {
    const { ctx } = this;
    ctx.body = 'hi, egg';
  }
  /**
* @Router get /count
* @Summary 获取预约申请数、实验室数量、动态数量、用户数量
* @Description 获取预约申请数、实验室数量、动态数量、用户数量
* @apikey
*/
  async getCount(){
    let {ctx,service} = this
    let result = await service.home.getCount()
    ctx.body = new Response(200,result,"")
  }
}



module.exports = HomeController;
